﻿using iPhOwa.Exchange.Attributes;
using iPhOwa.Exchange.ContentClasses.Fields;

namespace iPhOwa.Exchange.ContentClasses
{
	/// <summary>
	/// An attachment, not a true exchange content class.
	/// </summary>
	[ExchangeContentClass(ContentClassNames.Attachment)]
	public class Attachment : Item
	{
		/// <summary>
		/// The filename of the attchment.
		/// </summary>
		[ExchangeField(MessageFields.AttachmentFileName)]
		public string AttachmentFileName { get; set; }

		/// <summary>
		/// Path to the icon.
		/// </summary>
		public override string IconPath
		{
			get { return "~/Images/icon-paperclip.gif"; }
		}
	}
}